<!doctype html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="UTF-8" />
	<title>穿见密码重置</title>
	<link rel="shortcut icon" href="/img/favicon.ico">
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<link rel="stylesheet" href="/layui/css/modules/layim/layim.css"/>
	<link rel="stylesheet" href="/layui/css/layui.css" />
	<link rel="stylesheet" href="/css/resetpw/base.css" />
	<link rel="stylesheet" href="/css/resetpw/layout.css"/>
	<script src="/js/jquery.js"></script>
	<script src="/js/bootstrap.min.js"></script>
	<script src="/layui/layui.js"></script>

</head>
<body>
	<div id="wrapper">
		<header th:include="include ::frontheader">
		</header>
		<div class="container w960 mt20" style="height: 50px;padding: 20px">
			<span id="msg" th:text="${msg}"></span>
			<input id="status" th:hidden="${status}" ><br>
			<a href="/login">点击登录</a>
		</div><!-- // container end -->
		<footer id="footer" class="w960 oh">
		</footer><!-- // footer end -->
	</div><!-- // wrapper end -->
	
	<script>

		//显示提示框，目前三个参数(txt：要显示的文本；time：自动关闭的时间（不设置的话默认1500毫秒）；status：默认0为错误提示，1为正确提示；)
		function showTips(txt,time,status)
		{
			var htmlCon = '';
			if(txt != ''){
				if(status != 0 && status != undefined){
					htmlCon = '<div class="tipsBox" style="width:220px;padding:10px;background-color:#4AAF33;border-radius:4px;-webkit-border-radius: 4px;-moz-border-radius: 4px;color:#fff;box-shadow:0 0 3px #ddd inset;-webkit-box-shadow: 0 0 3px #ddd inset;text-align:center;position:fixed;top:25%;left:50%;z-index:999999;margin-left:-120px;"><img src="/images/ok.png" style="vertical-align: middle;margin-right:5px;" alt="OK，"/>'+txt+'</div>';
				}else{
					htmlCon = '<div class="tipsBox" style="width:220px;padding:10px;background-color:#D84C31;border-radius:4px;-webkit-border-radius: 4px;-moz-border-radius: 4px;color:#fff;box-shadow:0 0 3px #ddd inset;-webkit-box-shadow: 0 0 3px #ddd inset;text-align:center;position:fixed;top:25%;left:50%;z-index:999999;margin-left:-120px;"><img src="/images/err.png" style="vertical-align: middle;margin-right:5px;" alt="Error，"/>'+txt+'</div>';
				}
				$('body').prepend(htmlCon);
				if(time == '' || time == undefined){
					time = 1500; 
				}
				setTimeout(function(){ $('.tipsBox').remove(); },time);
			}
		}
        $(function () {
			var msg = $("#msg").text()
            var status = $("#status").text()
			if (status==0){
				showTips(msg,1500,0)
			}else if (status==1){
                showTips(msg,1500,1)
			}
        })
	</script>
</body>
</html>